package com.cleaningcloud.erp.domain.vo;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.erp.api.domain.ErpCommodity;
import com.cleaningcloud.erp.api.domain.ErpWareCommodityNumber;
import com.cleaningcloud.erp.domain.ErpCommodityType;
import com.cleaningcloud.erp.domain.ErpCommodityUnit;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 商品管理对象 erp_commodity
 *
 * @author cleaningcloud
 * @date 2024-09-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpCommodityVo extends ErpCommodity {

    // 单位名称
    @Excel(name = "单位", sort = 7)
    public String unitName1;
    // 单位名称
    @Excel(name = "辅助单位", sort = 7)
    public String unitName2;
    // 单位名称
    @Excel(name = "单位关系", sort = 8)
    public String unitRelationship;
    // 换算结果
    @Excel(name = "换算结果", sort = 9)
    private Long unitResult;
    // 成本价
    @Excel(name = "成本价", sort = 10)
    public BigDecimal costPrice;
    // 胜博价
    @Excel(name = "胜博价", sort = 10)
    private BigDecimal symbolPrice;
    // 零售价
    @Excel(name = "零售价", sort = 10)
    private BigDecimal retailPrice;
    // 经销价
    @Excel(name = "经销价", sort = 10)
    private BigDecimal distriPrice;
    // 代理价
    @Excel(name = "代理价", sort = 10)
    private BigDecimal agencyPrice;

    // 最近一次销售单价
    private BigDecimal salePrice;

    // 商品类别

    private String commodityTypeName;
    // 库存数量  明确仓库id时
    private int wareCommodityNumber;

    // 商品类别
    private List<ErpCommodityType> commodityTypeList;

    // 商品单位
    private List<ErpCommodityUnit> unitList;

    // 库存商品数量
    private List<ErpWareCommodityNumber> numberList;

}
